package com.zhang.bingmei_incomeexpenditure.entity.Utils;

import java.util.concurrent.atomic.AtomicInteger;

public final class IDWork {

    private static final Sequence worker = new Sequence();
    public static AtomicInteger atomicInteger = new AtomicInteger(0);

    private IDWork() {
    }

    public static long getSequenceId() {
        return worker.nextId();
    }

    public static String getSequenceId2String() {
        return String.valueOf(worker.nextId());
    }
}